﻿package {	
	import flash.events.Event;	
	import flash.display.MovieClip;

    [SWF(backgroundColor="0xFFFFFF")]
    
	/**
	 * KATNIKOVA.RU
	 * 
	 * @version 1.1
	 */
	public class Main extends MovieClip {
		
		/**
		 * Constructor
		 * We have fun in developed this product
		 */
		public function Main() {
			stop();
			addEventListener(Event.ADDED_TO_STAGE, handleAddedToStage);
		}
		
		/**
		 * Event of completed preloader
		 */
		private function handleAddedToStage(e : Event = null) : void {
			removeEventListener(Event.ADDED_TO_STAGE, handleAddedToStage);
			
			//init PureMVC Facade
			var facade : ApplicationFacade = ApplicationFacade.getInstance();
			facade.startup( this );			
		}
	}
}
